package org.dromara.pe.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.excel.core.ExcelResult;
import org.dromara.common.excel.utils.ExcelUtil;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.dromara.pe.domain.bo.DeviceScoreRawBo;
import org.dromara.pe.domain.vo.DeviceScoreRawImportVo;
import org.dromara.pe.domain.vo.DeviceScoreRawVo;
import org.dromara.pe.listener.DeviceScoreRawListener;
import org.dromara.pe.service.IDeviceScoreRawService;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

/**
 * 【请填写功能名称】
 *
 * @author Lion Li
 * @date 2024-09-25
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/openapi/pe/deviceScoreRaw")
public class OpenDeviceScoreRawController extends BaseController {

    private final IDeviceScoreRawService DeviceScoreRawService;

    @SaCheckPermission("pe:deviceScoreRaw:social:list")
    @GetMapping("/list")
    public R<List<DeviceScoreRawVo>> list(DeviceScoreRawBo bo) {
        return R.ok(DeviceScoreRawService.queryInfoList(bo));
    }

}
